from django_filters.rest_framework import filters
from django_filters.rest_framework import FilterSet
from app.models import Users,Group

class AdminUserFilters(FilterSet):
    nickname = filters.CharFilter(lookup_expr='icontains')
    # name = filters.CharFilter(lookup_expr='icontains')
    # phone = filters.CharFilter(lookup_expr='icontains')
    class Meta:
        model = Users
        fields = []


class RoleFilter(FilterSet):
    name = filters.CharFilter(lookup_expr='exact')
    class Meta:
        model = Group
        fields = []